Optimal. Leaf size=116 \[ -\frac {2 (d+e x)}{3 c d \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}+\frac {2 e \left (c d^2+a e^2+2 c d e x\right )}{3 c d \left (c d^2-a e^2\right )^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.054, Rules used = {666, 627}
\begin {gather*} \frac {2 e \left (a e^2+c d^2+2 c d e x\right )}{3 c d \left (c d^2-a e^2\right )^2 \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}-\frac {2 (d+e x)}{3 c d \left (x \left (a e^2+c d^2\right )+a d e+c d e x^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 627
Rule 666
Rubi steps
\begin {align*} \int \frac {(d+e x)^2}{\left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{5/2}} \, dx &=-\frac {2 (d+e x)}{3 c d \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}-\frac {e \int \frac {1}{\left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}} \, dx}{3 c d}\\ &=-\frac {2 (d+e x)}{3 c d \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}+\frac {2 e \left (c d^2+a e^2+2 c d e x\right )}{3 c d \left (c d^2-a e^2\right )^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 59, normalized size = 0.51 \begin {gather*} -\frac {2 (d+e x)^2 \left (-3 a e^2+c d (d-2 e x)\right )}{3 \left (c d^2-a e^2\right )^2 ((a e+c d x) (d+e x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(811\) vs.
\(2(108)=216\).
time = 0.73, size = 812, normalized size = 7.00
method | result | size |
trager | \(\frac {2 \left (2 c d e x +3 e^{2} a -c \,d^{2}\right ) \sqrt {c d e \,x^{2}+a \,e^{2} x +c \,d^{2} x +a d e}}{3 \left (a^{2} e^{4}-2 a c \,d^{2} e^{2}+c^{2} d^{4}\right ) \left (c d x +a e \right )^{2}}\) | \(85\) |
gosper | \(\frac {2 \left (c d x +a e \right ) \left (e x +d \right )^{3} \left (2 c d e x +3 e^{2} a -c \,d^{2}\right )}{3 \left (a^{2} e^{4}-2 a c \,d^{2} e^{2}+c^{2} d^{4}\right ) \left (c d e \,x^{2}+a \,e^{2} x +c \,d^{2} x +a d e \right )^{\frac {5}{2}}}\) | \(90\) |
default | \(e^{2} \left (-\frac {x}{2 c d e \left (a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}\right )^{\frac {3}{2}}}-\frac {\left (e^{2} a +c \,d^{2}\right ) \left (-\frac {1}{3 c d e \left (a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}\right )^{\frac {3}{2}}}-\frac {\left (e^{2} a +c \,d^{2}\right ) \left (\frac {\frac {4}{3} c d e x +\frac {2}{3} e^{2} a +\frac {2}{3} c \,d^{2}}{\left (4 a c \,d^{2} e^{2}-\left (e^{2} a +c \,d^{2}\right )^{2}\right ) \left (a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}\right )^{\frac {3}{2}}}+\frac {16 c d e \left (2 c d e x +e^{2} a +c \,d^{2}\right )}{3 \left (4 a c \,d^{2} e^{2}-\left (e^{2} a +c \,d^{2}\right )^{2}\right )^{2} \sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}\right )}{2 c d e}\right )}{4 c d e}+\frac {a \left (\frac {\frac {4}{3} c d e x +\frac {2}{3} e^{2} a +\frac {2}{3} c \,d^{2}}{\left (4 a c \,d^{2} e^{2}-\left (e^{2} a +c \,d^{2}\right )^{2}\right ) \left (a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}\right )^{\frac {3}{2}}}+\frac {16 c d e \left (2 c d e x +e^{2} a +c \,d^{2}\right )}{3 \left (4 a c \,d^{2} e^{2}-\left (e^{2} a +c \,d^{2}\right )^{2}\right )^{2} \sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}\right )}{2 c}\right )+2 d e \left (-\frac {1}{3 c d e \left (a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}\right )^{\frac {3}{2}}}-\frac {\left (e^{2} a +c \,d^{2}\right ) \left (\frac {\frac {4}{3} c d e x +\frac {2}{3} e^{2} a +\frac {2}{3} c \,d^{2}}{\left (4 a c \,d^{2} e^{2}-\left (e^{2} a +c \,d^{2}\right )^{2}\right ) \left (a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}\right )^{\frac {3}{2}}}+\frac {16 c d e \left (2 c d e x +e^{2} a +c \,d^{2}\right )}{3 \left (4 a c \,d^{2} e^{2}-\left (e^{2} a +c \,d^{2}\right )^{2}\right )^{2} \sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}\right )}{2 c d e}\right )+d^{2} \left (\frac {\frac {4}{3} c d e x +\frac {2}{3} e^{2} a +\frac {2}{3} c \,d^{2}}{\left (4 a c \,d^{2} e^{2}-\left (e^{2} a +c \,d^{2}\right )^{2}\right ) \left (a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}\right )^{\frac {3}{2}}}+\frac {16 c d e \left (2 c d e x +e^{2} a +c \,d^{2}\right )}{3 \left (4 a c \,d^{2} e^{2}-\left (e^{2} a +c \,d^{2}\right )^{2}\right )^{2} \sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}\right )\) | \(812\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.56, size = 157, normalized size = 1.35 \begin {gather*} \frac {2 \, \sqrt {c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e} {\left (2 \, c d x e - c d^{2} + 3 \, a e^{2}\right )}}{3 \, {\left (c^{4} d^{6} x^{2} + 2 \, a c^{3} d^{5} x e - 4 \, a^{2} c^{2} d^{3} x e^{3} + 2 \, a^{3} c d x e^{5} + a^{4} e^{6} + {\left (a^{2} c^{2} d^{2} x^{2} - 2 \, a^{3} c d^{2}\right )} e^{4} - {\left (2 \, a c^{3} d^{4} x^{2} - a^{2} c^{2} d^{4}\right )} e^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (d + e x\right )^{2}}{\left (\left (d + e x\right ) \left (a e + c d x\right )\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.95, size = 72, normalized size = 0.62 \begin {gather*} \frac {2\,\left (-c\,d^2+2\,c\,x\,d\,e+3\,a\,e^2\right )\,\sqrt {c\,d\,e\,x^2+\left (c\,d^2+a\,e^2\right )\,x+a\,d\,e}}{3\,{\left (a\,e+c\,d\,x\right )}^2\,{\left (a\,e^2-c\,d^2\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________